import request from '../../utils/request';

// 认证管理相关 API

// 检查登录状态
export const checkLoginStatus = () => {
    return request({
        url: '/system/api/auth/check-login',
        method: 'get'
    });
};

// 管理后台登录
export const adminLogin = (data: any) => {
    return request({
        url: '/system/api/auth/login',
        method: 'post',
        data
    });
};

// 用户登出
export const adminLogout = () => {
    return request({
        url: '/system/api/auth/logout',
        method: 'post'
    });
};

// 刷新用户权限
export const refreshUserPermissions = () => {
    return request({
        url: '/system/api/auth/refresh-permissions',
        method: 'post'
    });
};
